package com.yootk.vo;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 部门类
 */
public class Dept {
    private static final Logger LOGGER = LoggerFactory.getLogger(Dept.class);

    private Long deptno;
    private String dname;
    private String loc;

    public Dept() {
        LOGGER.info("【构造方法】public Dept() {}");
    }

    public Long getDeptno() {
        return deptno;
    }

    public void setDeptno(Long deptno) {
        LOGGER.info("【Setter方法】public void setDeptno() {}");
        this.deptno = deptno;
    }

    public String getDname() {
        return dname;
    }

    public void setDname(String dname) {
        LOGGER.info("【Setter方法】public void setDname() {}");
        this.dname = dname;
    }

    public String getLoc() {
        return loc;
    }

    public void setLoc(String loc) {
        LOGGER.info("【Setter方法】public void setLoc() {}");
        this.loc = loc;
    }

    @Override
    public String toString() {
        return "【部门信息 - " + super.hashCode() + "】编号：" + this.deptno + "、名称：" + this.dname + "、位置：" + this.loc;
    }
}
